package com.xy.article;

import com.xy.creature.Creature;

/**
 * @descript :如意金箍棒
 * @author :XiangYao
 * @date :2020/6/7 11:40
 */
public abstract class  WeaponCudgel extends ArticleWeapon{
    public WeaponCudgel(String id, String description, int damagaPoint) {
        super(id, description, damagaPoint);
    }

    //给敌人生物的生命值造成伤害
    //使用方法：修改enemyCreature的Hp=当前hp+伤害hp值
    @Override
    public void useArticle(Creature enemyCreature) {
            enemyCreature.setHPValue(enemyCreature.getHPValue()+this.getDamagaPoint());
    }
}
